package com.kongchengji.spider.util;

import com.kongchengji.spider.station.extention.MySpiderMonitor;
import com.kongchengji.spider.station.extention.MySpiderStatus;

import java.util.Map;

public class GetMySpiderStatusUtil {
    public static MySpiderStatus getMySpiderStatus(){
        MySpiderMonitor spiderMonitor = MySpiderMonitor.instance();
        Map<String, MySpiderStatus> spiderStatuses = spiderMonitor.getSpiderStatuses();
        MySpiderStatus mySpiderStatus = null;
        for(Map.Entry<String,MySpiderStatus> entry: spiderStatuses.entrySet()){
            mySpiderStatus = entry.getValue();
        }
        return mySpiderStatus;
    }
}
